<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
  <script src="ckeditor/sample-css/sample.js" type="text/javascript"></script>
<%-- <%@ page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory"%> --%>
<%-- <%@ page import="com.google.appengine.api.blobstore.BlobstoreService"%> --%>
<%@ include file="/WEB-INF/jsp/include.jsp"%>

          <div id="gwcswA" class="gwcswWrap">
            <div class="gwcswNav">
            <div class="gwcswNavWrap"><table width="437"><tbody><tr><td width="320" index="0">
            </td></tr></tbody></table></div></div>
            <div class="gwcswSlots">
              <div index="1" class="gwcswSlot" style="display: block; font-size: 14px;">
                <p>Chỉnh sửa sản phẩm</p><p>${product.name}<p>
              
     <form:form action="/editproduct.do" method="post" commandName="product">
           	 <table>
    <tr>
        <td><s:message code="label.ProductName"/></td>
        <td><form:input path="name" /></td> 
    </tr>
     <tr>
        <td><s:message code="label.ProductCatId"/></td>
        <td><form:input path="catId"  readonly="true"/></td> 
    </tr>
    <tr>
        <td><s:message code="label.ProductBarCode"/></td>
        <td><form:input path="id" readonly="true"/></td>
    </tr>
    <tr>
        <td><s:message code="label.Quantity"/></td>
        <td><form:input path="quantity"/></td>
    </tr>
    <tr>
        <td><s:message code="label.Unit"/></td>
        <td><form:input path="unit" /></td>
    </tr>
     <tr>
        <td><s:message code="label.Price"/></td>
        <td><form:input path="price" /></td>
    </tr>
    <tr>
        <td><s:message code="label.NewPrice"/></td>
        <td><form:input path="newPrice" /></td>
    </tr>
    <tr>
    	<td><s:message code="label.ProductInfo"/></td>
    	<td><form:textarea path="info" rows="10" cols="30" /></td>
    </tr>
    <tr>
    	<textarea class="ckeditor" cols="40" name="description" rows="10">${product.description.value}</textarea>
    </tr>
    <tr>
    	<td><input type="submit" value="Submit"></td>
    </tr>
    </table>
        </form:form>

              </div>
         </div>
        </div>